import request from '@/utils/request'

// 查询药品审核列表
export function listDrugverify(query) {
  return request({
    url: '/system/drugverify/list',
    method: 'get',
    params: query
  })
}

// 查询药品审核详细
export function getDrugverify(id) {
  return request({
    url: '/system/drugverify/' + id,
    method: 'get'
  })
}

// 新增药品审核
export function addDrugverify(data) {
  return request({
    url: '/system/drugverify',
    method: 'post',
    data: data
  })
}

// 修改药品审核
export function updateDrugverify(data) {
  return request({
    url: '/system/drugverify',
    method: 'put',
    data: data
  })
}

// 删除药品审核
export function delDrugverify(id) {
  return request({
    url: '/system/drugverify/' + id,
    method: 'delete'
  })
}

export function verify(data) {
  return request({
    url: '/system/drugverify/verify',
    method: 'post',
    data: data
  })
}

export function verifyDetail(data) {
  return request({
    url: '/system/drugverify/verifyDetail',
    method: 'post',
    data: data
  })
}

// 查询药品审核详细
export function dailyStat() {
  return request({
    url: '/system/drugverify/dailyStat',
    method: 'get'
  })
}

// 查询药品审核详细
export function ruleCategoryStat() {
  return request({
    url: '/system/resolve/ruleCategoryStat',
    method: 'get'
  })
}

export function drugModelStat() {
  return request({
    url: '/system/model/drugModelStat',
    method: 'get'
  })
}

export function drugStat() {
  return request({
    url: '/system/drug/drugStat',
    method: 'get'
  })
}